PROG = lab3
CFLAGS = -g -fPIC -m64 -Wall
LFLAGS= -fPIC -m64 -Wall
CC = mpicc

all: $(PROG)

lab1.o: lab3.c
	$(CC) $(CFLAGS) -c lab3.c

lab1 : lab3.o
	$(CC) $(LFLAGS) lab3.o -o lab3

run:
	mpirun --hostfile hostfile -np 24 lab3 5 10 5 0.005 1 24

ps:
	ps -fu $$USER

clean:
	/bin/rm -f *~
	/bin/rm -f *.o
	/bin/rm -f tp3
